/*
 * $Id: AbstractCfgRequestDefnToSweepPropId.java,v 1.3 2009/07/24 18:27:42 oliver Exp $
 *
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 *
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */

package com.ge.healthcare.autosc.common.database.pojo;

/**
 * AbstractCfgRequestDefnToSweepPropId entity provides the base persistence
 * definition of the CfgRequestDefnToSweepPropId entity. @author MyEclipse
 * Persistence Tools
 */

public abstract class AbstractCfgRequestDefnToSweepPropId implements
		java.io.Serializable {

	// Fields

	/**
	 * Eclipse generated
	 */
	private static final long serialVersionUID = -3002350603448101740L;
	private Long requestDefnId;
	private CfgSweepProperties cfgSweepProperties;

	// Constructors

	// Property accessors
	public CfgSweepProperties getCfgSweepProperties() {
		return this.cfgSweepProperties;
	}

	public void setCfgSweepProperties(CfgSweepProperties cfgSweepProperties) {
		this.cfgSweepProperties = cfgSweepProperties;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractCfgRequestDefnToSweepPropId))
			return false;
		AbstractCfgRequestDefnToSweepPropId castOther = (AbstractCfgRequestDefnToSweepPropId) other;

		return ((this.getRequestDefnId() == castOther.getRequestDefnId()) || (this
				.getRequestDefnId() != null
				&& castOther.getRequestDefnId() != null && this
				.getRequestDefnId().intValue() == castOther.getRequestDefnId()
				.intValue()))
				&& ((this.getCfgSweepProperties() == castOther
						.getCfgSweepProperties()) || (this
						.getCfgSweepProperties() != null
						&& castOther.getCfgSweepProperties() != null && this
						.getCfgSweepProperties().equals(
								castOther.getCfgSweepProperties())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getRequestDefnId() == null ? 0 : this.getRequestDefnId()
						.hashCode());
		result = 37
				* result
				+ (getCfgSweepProperties() == null ? 0 : this
						.getCfgSweepProperties().hashCode());
		return result;
	}

	/**
	 * @return the requestDefnId
	 */
	public Long getRequestDefnId() {
		return requestDefnId;
	}

	/**
	 * @param requestDefnId
	 *            the requestDefnId to set
	 */
	public void setRequestDefnId(Long requestDefnId) {
		this.requestDefnId = requestDefnId;
	}

}
